//
//  GGNetWorkHelper.h
//  TestAppDelegateService
//
//  Created by yuemei on 2017/9/22.
//  Copyright © 2017年 yuemei. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef NS_ENUM(NSInteger, RequestMethod) {
    GET = 0,
    POST,
    UPLOAD
};

static int zero = 0;
static int hour = 60;
static int day = 1440;
static int week = 10080;


@interface GGNetWorkHelper : NSObject
/**
 网络工具功能处理类
 */

// 解析json数据
+ (id)tryToParseData:(id)json;

//URL编码
+ (NSString *)urlEncode:(NSString *)url;

//时间戳
+ (NSString *)unixTime;

//判断缓存数据是否超时
+ (BOOL)dataCacheTimeoutWithInterval:(NSInteger)intervalTime URL:(NSString *)URL parameters:(id)parameters;

//url和参数字典拼接KEY
+ (NSString *)cacheKeyWithURL:(NSString *)URL parameters:(NSDictionary *)parameters;




@end
